// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
  env:"yiliaojiufeng-6gt0kj1l1df8b7b7",
  traceUser: true,
})
const db =cloud.database()
// 云函数入口函数
exports.main = async (event, context) => {
  const _ =db.command
  db.collection('examples').where({
      医疗纠纷类型:event.operation
  }).remove()
  .then((res)=>{
    resolve(res)
    console.log(res)
  })
  .catch((err)=>{
    reject(err)
    console.log(err)
  })
  }